package com.portal.business.functions.webservice;

import java.util.List;

import com.portal.business.functions.FunctionsService;
import com.portal.business.functions.dto.FunctionsDTO;
import com.portal.business.functions.dto.FunctionsResultBean;
import com.portal.framework.common.PortalSearchBean;
		
public class FunctionsWebImpl implements FunctionsWebService{

	private FunctionsService functionsService;

	public FunctionsResultBean findFunctions(PortalSearchBean portalSearchBean){
		return this.functionsService.findFunctions(portalSearchBean);
	}

	public Boolean addFunctions(FunctionsDTO functionsDTO) {
		return this.functionsService.addFunctions(functionsDTO);
	}

	public int delFunctions(Integer functionsId) {
		return this.functionsService.delFunctions(functionsId);
	}

	public int delFunctionsBatch(String[] asIdsStr) {
		return this.functionsService.delFunctionsBatch(asIdsStr);
	}

	public FunctionsDTO findByID(Integer functionsId) {
		return this.functionsService.findByID(functionsId);
	}

	public Boolean updateFunctions(FunctionsDTO functionsDTO) {
		return this.functionsService.updateFunctions(functionsDTO);
	}

	public FunctionsService getFunctionsService() {
		return functionsService;
	}

	public void setFunctionsService(FunctionsService functionsService) {
		this.functionsService = functionsService;
	}

	public List<FunctionsDTO> findAllFunctions() {
		return this.functionsService.findAllFunctions();
	}

	public List<FunctionsDTO> findIndex() {
		return this.functionsService.findIndex();
	}
	
	public boolean doFunctionsOrderEdit(String[] idsStr){
		return this.functionsService.updateFunctionsOrder(idsStr);
	}

}

		